﻿using AutoMapper;
using Process.API.Application.Command.Action.ProductionOrders;
using Process.API.Application.Command.Action.ProductionProcess;
using Process.API.Application.Command.Action.ProductionMaterial;
using Process.API.Application.Command.Action.Report;
using Process.Domain;

namespace Process.API
{
    public class PreAutoMapper : Profile
    {
        public PreAutoMapper()
        {
            CreateMap<AddReportCommand, ReportTable>().ReverseMap();
            CreateMap<UpdReportCommand, ReportTable>().ReverseMap();
            CreateMap<AddProductionOrdersCommand, ProductionOrders>().ReverseMap();
            CreateMap<UpdProductionOrdersCommand, ProductionOrders>().ReverseMap();
            CreateMap<AddProductionProcessTableCommand, ProductionProcessTable>().ReverseMap();
            CreateMap<AddProductionProcessTableItem, ProductionProcessTable>().ReverseMap();
            CreateMap<AddProductionMaterialItem, ProductionMaterialTable>().ReverseMap();
        }
    }
}
